package com.gexin.model.activity.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import java.math.BigDecimal;
import java.util.Date;

public abstract class BaseActivity<M extends BaseActivity<M>>
        extends Model<M>
        implements IBean
{
    public static final String FIELD_ID = "id";
    public static final String FIELD_NAME = "name";
    public static final String FIELD_BANNER = "banner";
    public static final String FIELD_TYPE = "type";
    public static final String FIELD_PRICE = "price";
    public static final String FIELD_GIVING = "giving";
    public static final String FIELD_DISCOUNT = "discount";
    public static final String FIELD_USE_START_TIME = "use_start_time";
    public static final String FIELD_USE_END_TIME = "use_end_time";
    public static final String FIELD_ACTIVITY_START_TIME = "activity_start_time";
    public static final String FIELD_ACTIVITY_END_TIME = "activity_end_time";
    public static final String FIELD_CREATE_TIME = "create_time";
    public static final String FIELD_PRODUCT_ID = "product_id";
    public static final String FIELD_PRODUCT_SKU_ID = "product_sku_id";
    public static final String FIELD_FREE_MERCHANDISE = "free_merchandise";
    public static final String FIELD_FREE_MERCHANDISE_SKU = "free_merchandise_sku";
    public static final String FIELD_POST_FREE = "post_free";

    public void setId(String id)
    {
        set("id", id);
    }

    public String getId()
    {
        return (String)get("id");
    }

    public void setName(String name)
    {
        set("name", name);
    }

    public String getName()
    {
        return (String)get("name");
    }

    public void setBanner(String banner)
    {
        set("banner", banner);
    }

    public String getBanner()
    {
        return (String)get("banner");
    }

    public void setType(Integer type)
    {
        set("type", type);
    }

    public Integer getType()
    {
        return (Integer)get("type");
    }

    public void setPrice(BigDecimal price)
    {
        set("price", price);
    }

    public BigDecimal getPrice()
    {
        return (BigDecimal)get("price");
    }

    public void setGiving(Integer giving)
    {
        set("giving", giving);
    }

    public Integer getGiving()
    {
        return (Integer)get("giving");
    }

    public void setDiscount(Double discount)
    {
        set("discount", discount);
    }

    public Double getDiscount()
    {
        return (Double)get("discount");
    }

    public void setUseStartTime(Date useStartTime)
    {
        set("use_start_time", useStartTime);
    }

    public Date getUseStartTime()
    {
        return (Date)get("use_start_time");
    }

    public void setUseEndTime(Date useEndTime)
    {
        set("use_end_time", useEndTime);
    }

    public Date getUseEndTime()
    {
        return (Date)get("use_end_time");
    }

    public void setActivityStartTime(Date activityStartTime)
    {
        set("activity_start_time", activityStartTime);
    }

    public Date getActivityStartTime()
    {
        return (Date)get("activity_start_time");
    }

    public void setActivityEndTime(Date activityEndTime)
    {
        set("activity_end_time", activityEndTime);
    }

    public Date getActivityEndTime()
    {
        return (Date)get("activity_end_time");
    }

    public void setCreateTime(Date createTime)
    {
        set("create_time", createTime);
    }

    public Date getCreateTime()
    {
        return (Date)get("create_time");
    }

    public void setProductId(Integer productId)
    {
        set("product_id", productId);
    }

    public Integer getProductId()
    {
        return (Integer)get("product_id");
    }

    public void setProductSkuId(Integer productSkuId)
    {
        set("product_sku_id", productSkuId);
    }

    public Integer getProductSkuId()
    {
        return (Integer)get("product_sku_id");
    }

    public void setFreeMerchandise(String freeMerchandise)
    {
        set("free_merchandise", freeMerchandise);
    }

    public String getFreeMerchandise()
    {
        return (String)get("free_merchandise");
    }

    public void setFreeMerchandiseSku(String freeMerchandiseSku)
    {
        set("free_merchandise_sku", freeMerchandiseSku);
    }

    public String getFreeMerchandiseSku()
    {
        return (String)get("free_merchandise_sku");
    }


    public void setPostFree(BigDecimal postFree)
    {
        set("post_free", postFree);
    }

    public BigDecimal getPostFree()
    {
        return (BigDecimal)get("post_free");
    }
}
